package com.itheima.service;

import com.itheima.dto.OrderDTO;
import com.itheima.pojo.Order;

/**
 * 处理预约的业务层
 */
public interface OrderService {

    /**
     * 体检预约
     * @param orderDto
     */
    void submitOrder(OrderDTO orderDto) throws Exception;

    /**
     * 生成验证码并保存到redis，五分钟后删除
     */
    void saveValidateCode(String telephone);

    /**
     * 根据预约id查询预约信息
     * @param id
     * @return
     */
    Order findById(Long id);
}
